package com.liranhui.tab;

import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;

public class ModCreativeTab extends CreativeModeTab {
    Item    _representItem;
    public ModCreativeTab(String label) {
        super(label);
    }

    public void setRepresentItem( Item item ) {
        _representItem = item;
    }

    @Override
    public ItemStack makeIcon() {
        if( null != _representItem) {
            ItemStack rst = new ItemStack(_representItem);
            return rst;
        }
        return null;
    }
};